import request from '@/utils/request'

// 获取酒店列表
export const getCarouselList = (query) => {
  return request({
    url: '/system/carousel/image/list',
    method: 'get',
    params: query
  })
}
//删除
export const DelCarousel = (id) => {
  return request({
    url: '/system/carousel/image/del/'+id,
    method: 'get'
  })
}
//新增
export const AddCarousel = (query) => {
  return request({
    url: '/system/carousel/image/add',
    method: 'post',
    data: query
  })
}
//修改
export const UpdateCarousel = (query) => {
  return request({
    url: '/system/carousel/image/update',
    method: 'post',
    data: query
  })
}
//详情
export const GetDetail = (id) => {
  return request({
    url: '/system/carousel/image/getDetail/'+id,
    method: 'get',
  })
}
